package com.chukun.gateway.core.parallel.disruptor;

/**
 * @author chukun
 * @version 1.0.0
 * @description 数据监听器
 * @createTime 2023/12/23 20:30
 */
public interface EventListener<E> {

    void onEvent(E event);

    void onException(Throwable ex,long sequence,E event);
}
